import { defineComponent } from 'vue'
import './404.scss'
import { useRouter } from 'vue-router'

const error404 = defineComponent({
  setup () {
    const router = useRouter()
    const goBack = () => {
      router.go(-1)
    }
    return () => (
      <div class='err404'>
        <div>
          <p>跳转路径错误！点击下方按钮返回！</p>
          <el-button onClick={goBack}>返回</el-button>
        </div>
      </div>
    )
  }
})
export default error404
